package com.dmz.workflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dmz.workflow.base.BaseService;
import com.dmz.workflow.entity.ProcessInstanceStatus;

import java.util.List;
import java.util.Set;

public interface WorkflowProcessStatusService extends BaseService<ProcessInstanceStatus> {

    Integer selectStatusByProcessInstanceId(String processInstanceId);

    int updateStatusByProcessInstanceId(String processInstanceId, Integer status);

    IPage<ProcessInstanceStatus> selectProcessInstanceIdsByStatus(String memberId, Integer status, Integer pageNo, Integer pageSize,String keyword);

    List<ProcessInstanceStatus> selectProcessesStatus(Set<String> processInstanceIds);

    ProcessInstanceStatus selectInstanceByInstanceId(String processInstanceId);
}
